package com.tdkj.model.decorate;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

/**
 * 
 */
@Entity
@Table(name = "decorate_diamond_custom")
public class BeanDiamondCustom extends BaseEntity {

	private Integer timeLimitAmount;
	private String timeLimitUnit;
	private Integer price;
	private String unit;
	private BeanDiamond diamond;
	private Timestamp createTime;
	
	public Integer getTimeLimitAmount() {
		return timeLimitAmount;
	}
	
	public void setTimeLimitAmount(Integer timeLimitAmount) {
		this.timeLimitAmount = timeLimitAmount;
	}

	public String getTimeLimitUnit() {
		return timeLimitUnit;
	}

	public void setTimeLimitUnit(String timeLimitUnit) {
		this.timeLimitUnit = timeLimitUnit;
	}

	public Integer getPrice() {
		return price;
	}
 
	public void setPrice(Integer price) {
		this.price = price;
	}
 
	public String getUnit() {
		return unit;
	}
 
	public void setUnit(String unit) {
		this.unit = unit;
	}
 
	@ManyToOne(fetch=FetchType.LAZY , cascade={CascadeType.REFRESH})
	@JoinColumn(name="diamond_id")
	public BeanDiamond getDiamond() {
		return diamond;
	}
 
	public void setDiamond(BeanDiamond diamond) {
		this.diamond = diamond;
	}
 
	public Timestamp getCreateTime() {
		return createTime;
	}
 
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	
}